{
  "targets": [
    {
      "target_name": "safeThread",
      "sources": [ "./safeThread.cpp" ],
      'cflags!': [ '-fno-exceptions' ],
      'cflags_cc!': [ '-fno-exceptions' ],
      "include_dirs": [
        "<!@(node -p \"require('node-addon-api').include\")"
      ],
      'dependencies': [
        "<!(node -p \"require('node-addon-api').gyp\")"
      ],
      "conditions": [
        ['OS=="win"', {
          "configurations": {
            "Release": {
              "msvs_settings": {
                "VCCLCompilerTool": {
                  "AdditionalOptions": ["/EHsc", "/std:c++17" , "/source-charset:utf-8"]
                }
              }
            }
          }
        }]
      ],
      "defines": ["NAPI_CPP_EXCEPTIONS"]
    }]
  }